
<?php 
/*if($user = Yii::app()->session['user']==''){
	$this->redirect(Yii::app()->request->baseUrl.'/index.php/site/login');
	exit;
}*/
?>
<link rel="stylesheet" href="../../assets/css/bootstrap-responsive.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../assets/css/bootstrap.css" type="text/css" media="screen" />
<?php
/* @var $this SiteController */

$this->pageTitle=Yii::app()->name;
?>

<div class="container">

		<table class="table table-hover">
			<th>ID</th>
		 	<th>User Name</th>
		 	<th>Profile</th>
<?php 
//print_r($ARRAY);
$profil ="actual-profile";
$u_id =".id";
echo $user = Yii::app()->session['u_login'];
foreach ($ARRAY as $item){
			$user_id = $item[$u_id];
			$user_name = $item[name];
			$user_profile = $item[$profil];
			$user_password = $item[password];
		?>	

	  	<tr>
	  	  <td><?php echo $user_id;?></td>
		  <td><?php echo $user_name;?></td>
		  <td><?php echo $user_profile;?></td>
		</tr>
		<?php 
		}
		?>
		</table>
</div>